import { createRouter, createWebHistory } from 'vue-router'
import Home from '../views/Home.vue'
import My from '../views/My.vue'
import Login from '../views/login.vue'
import FindPass from '../views/findpass.vue'
import Register from '../views/register.vue'
import Infor from '../views/Information.vue'
import child from '../components/ChildInterface.vue'
import List from '../components/ListOfMessages.vue'
//挂号
import guahao from '../views/guahao/reg.vue'
import serch1 from '../views/guahao/serch1.vue'
import insertlogo from '../views/guahao/m2.vue'
import ghmy from '../views/guahao/ghmy.vue'
import hmesge from '../views/guahao/hmesge.vue'
import ghall from '../views/guahao/ghall.vue'
import ghkefu from '../views/guahao/ghkefu.vue'

import Adult from '../views/vaccine/Adult.vue'
import City from '../views/vaccine/City.vue'
import My1 from '../views/vaccine/My.vue'
import Yg from '../views/vaccine/Yg.vue'
import Need from '../views/vaccine/Need.vue'

//商城模块
import Main from '../views/shopping/Main.vue'
import Goods from '../views/shopping/goods.vue'
import GoodsSort from '../views/shopping/goodsort.vue'
import ShopCat from '../views/shopping/shopcat.vue'

//医护上门模块
import MedicalCare_My from '../views/medicalcare/MedicalCare_My.vue'
import MedicalCare_Home from '../views/medicalcare/MedicalCare_Home.vue'
import MedicalCare_Show from '../views/medicalcare/MedicalCare_Show.vue'
import MedicalCareApp from '../views/medicalcare/MedicalCareApp.vue'

const routes = [
  {
    path: '/',
    name: 'Home',
    component: Home
  },
  {
    path: '/need',
    name: 'Need',
    component: Need
  },
  
  {
    path: '/yg',
    name: 'Yg',
    component: Yg
  },
  {
    path: '/my1',
    name: 'My1',
    component: My1
  },
  {
    path: '/city',
    name: 'City',
    component: City
  },
  {
    path: '/adult',
    name: 'Adult',
    component: Adult
  },
  {
    path: '/Infor',
    name: 'Infor',
    component: Infor
  },
  {                  //挂号板块路由
    path: '/guahao',
    name: 'guahao',
    component: guahao
  },
  {
    path: '/ghmy',
    name: 'ghmy',
    component: ghmy 
  },
  {
    path: '/ghkefu',
    name: 'ghkefu',
    component: ghkefu 
  },
  {
    path: '/hmesge',
    name: 'hmesge',
    component: hmesge 
  },
  {
    path: '/ghall',
    name: 'ghall',
    component: ghall 
  },
  {
    path: '/m2',
    name: 'insertlogo',
    component: insertlogo 
  },
  {
    path: '/serch1',
    name: 'serch1',
    component: serch1 
  }, 				//挂号板块路由
  {
    path: '/List',
    name: 'List',
    component: List
  },
  {
    path: '/register',
    name: 'Register',
    component: Register
  },
  {
    path: '/child',
    name: 'child',
    component: child
  },
  {
    path: '/findpass',
    name: 'FindPass',
    component: FindPass
  },
  {
    path: '/my',
    name: 'My',
    component: My,
  
  },
  {
    path: '/login',
    name: 'Login',
    component: Login,
  
  },
  //商城板块
  {
    path: '/main',
    name: 'Mian',
    component: Main
  },
  {
    path: '/goods',
    name: 'goods',
    component: Goods
  },
  {
    path: '/shopcat',
    name: 'shopcat',
    component: ShopCat
  },
  {
    path: '/goodsort',
    name: 'goodsort',
    component: GoodsSort
  },
  //医护上门板块
  {
    path: '/MedicalCareApp',
    name: 'MedicalCareApp',
    component: MedicalCareApp,
	
  },
  {
    path: '/MedicalCare_Show',
    name: 'MedicalCare_Show',
    component: MedicalCare_Show,
	
  },
  {
    path: '/MedicalCare_My',
    name: 'MedicalCare_My',
    component: MedicalCare_My,
	
  },
  {
    path: '/MedicalCare_Home',
    name: 'MedicalCare_Home',
    component: MedicalCare_Home,

  },
  {
    path: '/about',
    name: 'About',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
  }
]

const router = createRouter({
  history: createWebHistory(process.env.BASE_URL),
  routes
})

export default router
